@import '../../../../common/style/mixin.less';

.rightContent {
  :global {
    .side-panel-body {
      // max-height: 420px;
      // height: calc(100vh - 562px);
      height: calc(100vh - 588px);
      overflow-y: auto;
      overflow-x: hidden;
      .beautify-scrollbar();
    }
  }
}

.progressInfo {
  margin-top: 6px;

  .title {
    padding-left: 24px;
    margin-bottom: 24px;
  }

  &:before {
    top: 34px !important;
  }

  .stickyHeader {
    padding-top: 10px;
    padding-bottom: 10px;
    list-style: none;

    &Active {
      position: sticky;
      top: 0;
      background: #14313f;
      z-index: 99;
    }

    li {
      float: left;
      width: 80px;
      margin-right: 10px;
      font-size: 12px;
    }

    &:after {
      display: block;
      content: '';
      clear: both;
    }
  }
}

.all {
  color: @text-color-65;
  font-size: 14px;
}

.name {
  padding-left: 16px;
  padding-right: 16px;

  background: linear-gradient(120deg, rgba(#ffffff, 0.1) 93%, transparent 93%);

  // border-left: 2px solid rgba(61, 251, 255, 1);
  color: @text-color-85;
}

.deviceInfo {
  margin-top: 6px;
  padding: 0 16px;
  width: 392px;

  &:before {
    top: 34px !important;
  }

  .title {
    margin-top: 16px;
    font-size: 18px;
    font-weight: bold;
    color: @text-color-100;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .deviceStateWrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .deviceStateItemWrap {
      padding-bottom: 16px;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
      margin-top: 16px;

      .deviceStateItem {
        width: 180px;

        .deviceStateTitle {
          display: flex;
          align-items: center;

          .nameNumber {
            font-size: 16px;
            margin-left: 8px;
            color: #2fb0ff;
          }
        }

        .deviceStateContent {
          display: flex;
          align-items: center;
          margin-top: 8px;

          div {
            width: 50%;

            .deviceStateContentName {
              color: @text-color-65;
              margin-right: 8px;
            }

            .deviceStateContentValue {
              color: #2fb0ff;
            }

            .deviceStateContentValue1 {
              color: #ffdd2f;
            }
          }
        }

        .deviceChart {
          display: flex;
          align-items: center;
          width: 169px;
          height: 8px;
          margin-top: 8px;

          .deviceChartL {
            background: linear-gradient(
              270deg,
              rgba(255, 255, 255, 0.2) 0%,
              rgba(255, 255, 255, 0.08) 100%
            );
            border-right: 2px solid #2fb0ff;
            height: 8px;
          }

          .deviceChartR {
            height: 8px;
            background-color: rgba(255, 255, 255, 0.08);
          }
        }
      }
    }

    .deviceStateItemWrap:nth-child(odd) {
      .deviceStateItem {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
      }
    }

    .deviceStateItemWrap:nth-child(even) {
      .deviceStateItem {
        padding-left: 14px;
      }
    }

    .deviceStateItemWrap:nth-last-child(2),
    deviceStateItemWrap:nth-last-child(1) {
      padding-bottom: 30px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
  }

  &Item {
    padding-left: 28px;
    padding-bottom: 18px;

    span {
      display: inline-block;
      vertical-align: top;
      position: relative;
      padding-left: 60px;
      line-height: 22px;
      font-size: 16px;

      &::before {
        position: absolute;
        left: 0;
        top: 6px;
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        content: '';
      }

      &:after {
        position: absolute;
        left: 18px;
        font-size: 12px;
        color: rgba(#ffffff, 0.7);
      }
    }
  }

  &Working {
    width: 90px;
    margin-right: 80px;

    &::before {
      background: #43d29e;
    }

    &::after {
      content: '在线';
    }
  }

  &NonWorking {
    &::before {
      background: #eb4e36;
    }

    &::after {
      content: '停工';
    }
  }
}

.deviceInfoEdit {
  position: fixed;
  width: 584px;
  left: 444px;
  bottom: 342px;

  input {
    line-height: 24px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;

    &:hover,
    &:active {
      border: 1px solid rgba(#2fb0ff, 0.7);
    }
  }

  .content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 534px;
    margin: 0 0 0 24px;
    padding-top: 16px;
  }

  .deviceInfoEditBody {
    height: 240px;
    overflow-y: auto;
    .beautify-scrollbar();
  }

  &Item {
    width: 256px;
    height: 94px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;

    :global {
      .ant-input-number-sm {
        background: transparent;
        color: #ffffff;
        width: 48px;
        margin-left: 8px;
        margin-right: 8px;
      }
    }

    &Title {
      line-height: 46px;
      padding-left: 8px;
      margin-bottom: 0;
    }

    .editBtn {
      float: right;
      margin-right: 16px;
      font-size: 12px;
      color: rgba(#ffffff, 0.7);
      cursor: pointer;
      transition: all linear 0.3s;

      &:hover {
        color: #ffffff;
      }
    }
  }

  &Working,
  &NonWorking {
    &::after {
      content: '台';
      color: rgba(#ffffff, 0.5);
    }
  }

  &Working {
    padding-left: 8px;
    margin-right: 24px;
  }
}

.overflowY {
  overflow-y: auto;
  .beautify-scrollbar();
}

.bookMark {
  // position: absolute;
  // top: 648px;
  // right: 24px;
  &Add {
    width: 350px;
    height: 40px;
    line-height: 40px;
    border-radius: 2px;
    border: 1px solid #2fb0ff;
    cursor: pointer;
    color: #2fb0ff;
    text-align: center;
    transition: linear 0.2s;

    &:hover {
      background: rgba(#ffffff, 0.1);
    }
  }

  .content {
    height: 154px;
    margin-bottom: 8px;
    overflow-y: auto;
    .beautify-scrollbar();
  }
}
.content2 {
  height: 240px !important;
  overflow-y: auto;
  .beautify-scrollbar();
}
